<?php

use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;

class Users extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        $data['username'] = 'admin';
        $data['nickname'] = 'admin';
        // md5(md5('admin123456'))
        $data['password'] = '5d80253b1cd5e5d4ca5ed539f4d72052';
        $data['hash'] = '1234';
        $data['face'] = '/upload/face/face_155226927780763286_face.jpg';
        $data['lastlogin'] = '1550304776';
        $re = DB::table('users')->insert($data);
    }
}
